package com.baitai.system.service;

import java.util.List;
import java.util.Map;

import com.baitai.common.core.domain.AjaxResult;
import com.baitai.system.domain.PrizeDrawRule;
import com.baitai.system.domain.ProductInfo;
import com.baitai.system.domain.vo.PrizeDrawRuleVo;

/**
 * 抽奖规则Service接口
 * 
 * @author ruoyi
 * @date 2024-07-11
 */
public interface IPrizeDrawRuleService 
{
    /**
     * 查询抽奖规则
     * 
     * @param id 抽奖规则主键
     * @return 抽奖规则
     */
    public PrizeDrawRuleVo selectPrizeDrawRuleById(Long id);

    /**
     * 查询抽奖规则列表
     * 
     * @param prizeDrawRule 抽奖规则
     * @return 抽奖规则集合
     */
    public List<PrizeDrawRule> selectPrizeDrawRuleList(PrizeDrawRule prizeDrawRule);

    /**
     * 新增抽奖规则
     * 
     * @param prizeDrawRule 抽奖规则
     * @return 结果
     */
    public int insertPrizeDrawRule(PrizeDrawRule prizeDrawRule);

    /**
     * 新增抽奖规则
     *
     * @param prizeDrawRule 抽奖规则
     * @return 结果
     */
    public int insertPrizeDrawRule(PrizeDrawRuleVo prizeDrawRule);

    /**
     * 修改抽奖规则
     * 
     * @param prizeDrawRule 抽奖规则
     * @return 结果
     */
    public int updatePrizeDrawRule(PrizeDrawRule prizeDrawRule);

    /**
     * 修改抽奖规则
     *
     * @param prizeDrawRule 抽奖规则
     * @return 结果
     */
    public int updatePrizeDrawRule(PrizeDrawRuleVo prizeDrawRule);

    /**
     * 批量删除抽奖规则
     * 
     * @param ids 需要删除的抽奖规则主键集合
     * @return 结果
     */
    public int deletePrizeDrawRuleByIds(Long[] ids);

    /**
     * 删除抽奖规则信息
     * 
     * @param id 抽奖规则主键
     * @return 结果
     */
    public int deletePrizeDrawRuleById(Long id);

    AjaxResult PrizeDraw(Long id, Long userId);

    AjaxResult getPrizeDraw();

}
